package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Client;
import com.dao.ClientMapper;
import com.dao.ProjectMapper;
import com.service.ClientService;
@Service
public class ClientServiceImpl implements ClientService {
	
	@Autowired
    private ClientMapper dao;
	
	

	public List<Client> list(Map<String, Object> map) {
		return dao.list(map);
	}



	public void delete(Integer id) {
		dao.deleteByPrimaryKey(id);
	}



	public void insert(Client bean) {
		dao.insert(bean);
	}



	public Client selectOne(Integer id) {
		
		return dao.selectByPrimaryKey(id);
	}



	public void update(Client bean) {
		dao.updateByPrimaryKeySelective(bean);
	}



	public Client selectByclientidname(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return dao.selectByclientidname(map);
	}





	
}
